/**
 * 
 */
package com.goldsign.pay.provider.sample.biz;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.goldsign.pay.common.core.service.CrudService;
import com.goldsign.pay.feign.api.sample.entity.Sample;
import com.goldsign.pay.provider.sample.dao.SampleDao;

/**
 * @author johnny
 *
 */
@Component
public class SampleBiz extends CrudService<SampleDao, Sample> {
	
	@Autowired
	SampleDao sampleDao;
	
	List<Sample> list(Sample entity){
		return sampleDao.findList(entity);
	}
	
	void callOwnBiz(){
		System.out.println("==> Class: "+this.getClass().getName()+" method: "+
				Thread.currentThread().getStackTrace()[1].getMethodName() +" line:"+
				Thread.currentThread().getStackTrace()[1].getLineNumber());
	}
	
	void callMultiBiz(){
		
	}
}
